package com.hqyj.dao;

import com.hqyj.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.*;

import java.util.List;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author rock
 * @since 2021-10-21
 */
public interface UserMapper extends BaseMapper<User> {
    //动态查询
    List<User> selectByCon(User user);

    //用户名查询
    @Select("select user_id,name,user_name,pass_word,salt  from User where user_name=#{userName}")
    List<User> selectByName(String userName);
    //添加

}
